import request from '@/utils/request'

// 查询传感器主题与传感器参数信息列表
export function listSensubjectinfo(query) {
  return request({
    url: '/snmp/sensubjectinfo/list',
    method: 'get',
    params: query
  })
}

// 查询传感器主题与传感器参数信息详细
export function getSensubjectinfo(id) {
  return request({
    url: '/snmp/sensubjectinfo/' + id,
    method: 'get'
  })
}

// 新增传感器主题与传感器参数信息
export function addSensubjectinfo(data) {
  return request({
    url: '/snmp/sensubjectinfo',
    method: 'post',
    data: data
  })
}

// 修改传感器主题与传感器参数信息
export function updateSensubjectinfo(data) {
  return request({
    url: '/snmp/sensubjectinfo',
    method: 'put',
    data: data
  })
}

// 删除传感器主题与传感器参数信息
export function delSensubjectinfo(id) {
  return request({
    url: '/snmp/sensubjectinfo/' + id,
    method: 'delete'
  })
}
